package com.xuexiang.yoyo.entity;

import java.io.Serializable;

public class DataItemResult implements Cloneable, Serializable {

    private static final long serialVersionUID = 3960671537332505274L;
    private Integer id;
    private String description;
    private String value;
    private String name;
    private String ln;
    private Integer attributeIndex;
    private String gxdlmsClassName;
    private String consemClassId;
    //实际表
    private String deviceCode;
    private String username;
    private Long readTime;
    //模拟标号
    private String insertDeviceCode;
    private String unit;
    private Double scaler;
    private boolean isMeterStatus;
    private String shortName;

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }
    private String fcatTag;


    public String getfcatTag() {
        return fcatTag;
    }

    public void setfcatTag(String fcatTag) {
        this.fcatTag = fcatTag;
    }
    public DataItemResult() {
    }

    public DataItemResult(DataItemLatest dataItemLatest) {
        this.description = dataItemLatest.getDescription();
        this.value = dataItemLatest.getValue();
        this.name = dataItemLatest.getDataItemName();
        this.ln = dataItemLatest.getLn();
        this.attributeIndex = dataItemLatest.getAttributeIndex();
        this.gxdlmsClassName = dataItemLatest.getGxdlmsClassName();
        this.deviceCode = dataItemLatest.getDeviceCode();
        this.readTime = dataItemLatest.getCreateTime();
    }

    public String getConsemClassId() {
        return consemClassId;
    }

    public void setConsemClassId(String consemClassId) {
        this.consemClassId = consemClassId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getInsertDeviceCode() {
        return insertDeviceCode;
    }

    public void setInsertDeviceCode(String insertDeviceCode) {
        this.insertDeviceCode = insertDeviceCode;
    }

    public Long getReadTime() {
        return readTime;
    }

    public void setReadTime(Long readTime) {
        this.readTime = readTime;
    }

    public boolean isMeterStatus() {
        return isMeterStatus;
    }

    public void setMeterStatus(boolean meterStatus) {
        isMeterStatus = meterStatus;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public Double getScaler() {
        return scaler;
    }

    public void setScaler(Double scaler) {
        this.scaler = scaler;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLn() {
        return ln;
    }

    public void setLn(String ln) {
        this.ln = ln;
    }

    public Integer getAttributeIndex() {
        return attributeIndex;
    }

    public void setAttributeIndex(Integer attributeIndex) {
        this.attributeIndex = attributeIndex;
    }

    public String getGxdlmsClassName() {
        return gxdlmsClassName;
    }

    public void setGxdlmsClassName(String gxdlmsClassName) {
        this.gxdlmsClassName = gxdlmsClassName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public DataItemResult clone(){
        DataItemResult sc = null;
        try
        {
            sc = (DataItemResult) super.clone();
        } catch (CloneNotSupportedException e){
            e.printStackTrace();
        }
        return sc;
    }

    @Override
    public String toString() {
        return "DataItemResult{" +
                "id=" + id +
                ", description='" + description + '\'' +
                ", value='" + value + '\'' +
                ", name='" + name + '\'' +
                ", ln='" + ln + '\'' +
                ", attributeIndex=" + attributeIndex +
                ", gxdlmsClassName='" + gxdlmsClassName + '\'' +
                ", consemClassId='" + consemClassId + '\'' +
                ", deviceCode='" + deviceCode + '\'' +
                ", username='" + username + '\'' +
                ", readTime=" + readTime +
                ", insertDeviceCode='" + insertDeviceCode + '\'' +
                ", unit='" + unit + '\'' +
                ", scaler=" + scaler +
                ", isMeterStatus=" + isMeterStatus +
                '}';
    }
}
